<div class='p-w l-lr'><div class='p-i-w'>

	<div class='l-box l-l'>
		<div class='sb-w red'>
			<h1 class='sb-title'><span>商品信息</span></h1>			
			<div class='sb-ci-w'>
				
			</div>
		</div>
	</div>
	
	<div class='l-box l-r'>
	</div>
	
	<div class='bh-clear'></div>

</div></div>
<div class="bh-content">
<div class="bh-p-pj-lvyouliebiao bh-padT10">
	<div class="bh-pj-content">
    	<div class="bh-pj-ly-liebiao">
        	<div class="bh-pj-ly-liebiao-left bh-fl">
            	<div class="bh-pj-ly-lbl-one bh-pj-border">
            		<?php $form = $this->beginWidget('CActiveFormAdv', array(
						'method' => 'get',
						'action' => $this->createUrl($this->action->id),
					))?>
						<table class='form-tb no-border fc_555'>
							<tr>
								<th>产地：</th>
								<td>
									<?php LyscHtml::buttonList($form, $model, 'field', 
										GoodsNative::fieldCity()
									)?>
								</td>
							</tr>
							<tr>
								<th>价格：</th>
								<td>
									<?php LyscHtml::buttonList($form, $model, 'price', 
										Yii::app()->enum->options('goods.price', 'nolimit')
									)?>
								</td>
							</tr>
						</table>
                </div>
                <div class="bh-space"></div> 
                <div class="bh-pj-ly-lbl-two bh-pj-border">
                	<div class="bh-pj-ly-lbl-twotop">
                    	<p>
                    		分类：
                    		<?php 
                            	$ls=$form->linkage('goodsType');
                             	echo $ls->dropDownList($model,'type_id');
                             ?>
                    		<span class="bh-pj-cha"><?php if (!empty($model->title)) echo "“{$model->title}”相关的信息一共有{$data->totalItemCount}条";?></span>
                    		<span class="bh-pj-lbgj2">关键字：<?php echo $form->textField($model,'title',array('class'=>'bh-pj-liebiao-bd2'))?></span>
                    		<input type="submit" class="bh-pj-liebiao-bd1" value="确定"/>
                    	</p>
                    </div> 
                    <?php $this->endWidget();?>
                </div><div class="bh-space"></div>
                <div class="bh-pj-ly-lbl-three">
                	 <div class="bh-ly-pj-lylb-xia-left bh-fl">
                        <table>
                            <tr>
                                <th width="93">土特产图片</th>
                                <th width="180">土特产名称</th>
                                <th width="160">商品价格</th>
                                <th width="120">产地</th>
                                <th width="120">查看</th>
                            </tr>
                            <?php foreach ($data->getData() as $native):?>
                            <tr>
                                <td>
                                    <?php echo $native->img(97,62)?>
                                </td>
                                <td><dl class="bh-ly-pj-jlylb">
                                        <dd><?php echo CHtml::value($native, 'title')?></dd>
                                        <dd class="bh-pj-lij"><?php echo CHtml::value($native, 'provider.worker_name')?></dd>
                                        <div class="bh-clear"></div>
                                    </dl></td>
                                <td class="bh-pj-liebiao-td">经销价格：<span class="bh-ly-tszt-huang">￥<?php echo CHtml::value($native, 'priceInfo.price_dealer')?></span></td>
                                <td class="bh-pj-liebiao-td1"s><?php echo CHtml::value($native, 'profile.field')?></td>
                                <td><a style="color:#D35606" href="<?php echo Yii::app()->controller->createUrl('nativeView',array('id'=>CHtml::value($native, 'id')));?>">详情</a></td>
                            </tr>
                            <?php endforeach;?>
                        </table>
                        <div class="bh-space"></div>
                            <div class="bh-c-shuizi1-c-yy bh-mLeft20 bh-fr">
                            <!-- ***************分页*************** -->
								<?php $this->widget('LyLinkPager',array(
                					'pages' => $data->pagination,
                				))?>
						    </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bh-pj-ly-liebiao-right bh-fr bh-pj-border bh-padB20">
                 <h2 class="bh-ly-yw-shang">商品热卖</h2>
                 <?php $this->widget('lib.ext.data.DataWidget',array(
                	'model' => 'Native',
                     'criteria' => array(
                         'condition' => 'status = "ST_PASSED" AND listing_status = "ST_LISTING"',
                         'limit' => 6,
                     ),
                	'view' => 'application.views.partials.platform.native.hot_sell',
                 ))?>
                 <div class="bh-clear"></div>
            </div>
            <div class="bh-clear"></div>
        </div>
        <!-- 友情链接 -->
		<?php $this->widget('lib.ext.data.DataWidget',array(
        	'model' => 'FriendLink',
        	'view' => 'application.views.partials.aircraft.friendlink',
        ))?>
    </div>
</div>
